#ifndef OVERVIEW_H
#define OVERVIEW_H

#include <cstdio>
using namespace std;
#include <QLabel>
#include <CCfits>
using namespace CCfits;
#include "qfitsplugin.h"

/**
 * A Widget for QFits that shows all the Header-Data Units (HDU's) of the 
 * currently loaded fits file, allows switching between them and gives an 
 * overview of the currently selected one. This widgets prefers a position 
 * at the top right.
 */

class Overview : public QLabel, public QFitsPlugin {
	Q_OBJECT
	Q_INTERFACES(QFitsPlugin)
public:
	Overview();
	~Overview();
	// implementation of QFitsPlugin
	void onInitialize(QObject *manager);
	QString serialize();
public slots:
	void setFits(FITS *fits);
};

#endif // OVERVIEW_H
